package com.cjq.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cjq.domain.User;
import org.apache.ibatis.annotations.Param;

import java.sql.Date;
import java.util.List;

/**
* @Entity com.cjq.domain.User
*/
public interface UserMapper extends BaseMapper<User> {
    //查询某一天打卡的用户
    List<User> selectAllClock(@Param("date")Date date);
    IPage<User> selectAllClock(Page<?> page, @Param("date")Date date);

    //查询某一天未打卡的用户
    List<User> selectAllNoClock(@Param("date")Date date);
    IPage<User> selectAllNoClock(Page<?> page,@Param("date")Date date);


    //查询某一天打卡的用户，按条件查询
    List<User> selectClockByCondition(@Param("date")Date date,@Param("bean") User user);
    IPage<User> selectClockByCondition(Page<?> page, @Param("date")Date date,@Param("bean") User user);

    //查询某一天未打卡的用户，按条件查询
    List<User> selectNoClockByCondition(@Param("date")Date date,@Param("bean") User user);
    IPage<User> selectNoClockByCondition(Page<?> page,@Param("date")Date date,@Param("bean") User user);


}
